<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>

<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form" %>

<%@ include file="../general/header.jsp" %>
<script type="text/javascript">$($.date_input.initialize);</script>
	<div id="header">${title}</div>
	<%@ include file="../general/menu.jsp" %>	
	<div id="content">
		<form:form method="POST" action="${action}" commandName="userForm">
			<c:if test="${!empty username}">
				<h3>${username}</h3>
				<form:input type="hidden" path="userName" /><br />
			</c:if>
			<c:if test="${empty username}">
				<span>Username: </span>
				<form:input type="text" path="userName" /><br />
				<form:errors path="userName" />
			</c:if>
			
			<span>Password: </span>
			<form:input type="password" path="password" /><br />
			<form:errors path="password" />
			
			<span>Confirm Password: </span>
			<form:input type="password" path="password2" /><br />
			<form:errors path="password2" />
			
			<span>Name: </span>
			<form:input type="text" path="name" /><br />
			<form:errors path="name" />
			
			<span>Last Name: </span>
			<form:input type="text" path="lastName" /><br />
			<form:errors path="lastName" />

			<span>Email: </span>
			<form:input type="text" path="email" /><br/>
			<form:errors path="email" />
			
			<span>Birthday: </span>
			<form:input type="text" class="date_input" path="birthday" /><br/>
			<form:errors path="birthday" />
			
			<span>Genre: </span>
				<form:radiobutton path="male" value="${true}" label="Male"/>
   				<form:radiobutton path="male" value="${false}" label ="Female"/>
			<form:errors path="male" />
			
			<span>Address: </span>
			<form:input type="text" path="address" /><br/>
			<form:errors path="address" />
			
			<span>Telephone: </span>
			<form:input type="text" path="telephone" /><br/>
			<form:errors path="telephone" />

			<span>Cell phone: </span>
			<form:input type="text" path="celular" /><br/>
			<form:errors path="celular" />	
			
			<span>Question: </span>
			<form:input type="text" path="question" /><br/>
			<form:errors path="question" />

			<span>Answer: </span>
			<form:input type="text" path="answer" /><br/>
			<form:errors path="answer" />			

			<input type="submit" value="Save" />
		</form:form>
	</div>
	<br/>
	<div id="bottom">
		<span class="inline spaced">
			<a class="color" href="../general/index">Go back to index</a>
		</span>
	</div>
	<%@ include file="../general/footer.jsp" %>